package com.lantosec.hmrp.modules.uploads.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lantosec.hmrp.modules.category.entity.AssetsImage;
import com.lantosec.hmrp.modules.uploads.entity.SysUploads;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 * 系统上传数据 服务类
 * </p>
 *
 * @author AutoCode
 * @since 2020-02-19
 */
public interface ISysUploadsService extends IService<SysUploads> {

    SysUploads saveUploads(MultipartFile file);

    /**
     * 通过id删除图片记录
     * @param uploadId
     * @return
     */
    Boolean deleteFileById(String uploadId);

    String thumbnailPath(String uploadId);

    List pictureUrl(String uploadId);

    String queryPictureUrlById(String uploadId);

    List<AssetsImage> assetsPictureUrl(String assetsId);
}
